home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Mail
/
PhoneSlip_3.1
/
Source
/
colorView.m
< prev
next >
Wrap
Text File
|
1995-06-12
|
561b
|
33 lines
/* Copyright(C) 1993, The MITRE Corporation */
#import "colorView.h"
@implementation colorView
- setBackgroundColor:(NXColor)color
{
viewColor = color;
return self;
}
- setBackgroundGray:(float)gray
{
viewColor = NXConvertRGBAToColor( gray, gray, gray, 1.0);
return self;
}
- drawSelf:(const NXRect *)rects :(int)rectCount
{
NXRect frameRect;
[self getFrame:&frameRect];
[self convertRectFromSuperview:&frameRect];
NXSetColor(viewColor);
NXRectFill(&frameRect);
NXFrameRect(&frameRect);
return self;
}
@end